This page documents version 1.2 of the Motif library.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
A client registers a widget or gadget as a drop site using
the XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeRRRReeeeggggiiiisssstttteeeerrrr function. In addition, this routine
defines the behavior and capabilities of a drop site by
specifying appropriate resources. For example, the
XXXXmmmmNNNNiiiimmmmppppoooorrrrttttTTTTaaaarrrrggggeeeettttssss and XXXXmmmmNNNNnnnnuuuummmmIIIImmmmppppoooorrrrttttTTTTaaaarrrrggggeeeettttssss resources identify
respectively the selection target types and number of types
supported by a drop site. The visual animation effects
associated with a drop site are also described with DropSite
resources.
Drop site animation effects that occur in response to the
pointer entering a valid drop site are called drag-under
effects. A receiver can select from several animation
styles supplied by the toolkit or can provide customized
animation effects. Drag-under effects supplied by the
toolkit include border highlighting, shadow in/out drawing,
and pixmap representation.
When a preregister drag protocol style is used, the toolkit
generates drag-under visual effects based on the value of
the XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnSSSSttttyyyylllleeee resource. In dynamic mode, if the
drop site XXXXmmmmNNNNddddrrrraaaaggggPPPPrrrroooocccc resource is NULL, the toolkit also
provides animation effects based on the XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnSSSSttttyyyylllleeee
resource. Otherwise, if the XXXXmmmmNNNNddddrrrraaaaggggPPPPrrrroooocccc routine is
specified, the receiver can either assume responsibility for
animation effects (through the XXXXmmmmNNNNddddrrrraaaaggggPPPPrrrroooocccc routine) or rely
on the toolkit to provide animation.
Drop sites may overlap. The initial stacking order
corresponds to the order in which the drop sites were
registered. When a drop site overlaps another drop site,
the drag-under effects of the drop site underneath are
clipped by the obscuring drop site(s).
The XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeUUUUppppddddaaaatttteeee routine sets resources for a widget
that is registered as a drop site. XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeRRRReeeettttrrrriiiieeeevvvveeee gets
drop site resource values previously specified for a
registered widget. These routines are used instead of
XXXXttttSSSSeeeettttVVVVaaaalllluuuueeeessss and XXXXttttGGGGeeeettttVVVVaaaalllluuuueeeessss.
XXXXmmmmDDDDrrrrooooppppTTTTrrrraaaannnnssssffffeeeerrrr((((3333XXXX)))), and XXXXmmmmTTTTaaaarrrrggggeeeettttssssAAAArrrreeeeCCCCoooommmmppppaaaattttiiiibbbblllleeee((((3333XXXX)))).